package com.atguigu.client;

import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "shop-seckill")
public interface SecKillFeignClient {
    //1.查询所有的秒杀商品列表
    @GetMapping("/seckill/queryAllSeckillProduct")
    public RetVal queryAllSeckillProduct();
    //2.秒杀商品详情页面编写
    @GetMapping("/seckill/getSecKillProductBySkuId/{skuId}")
    public RetVal getSecKillProductBySkuId(@PathVariable Long skuId);
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();
}
